#include"searcher.hpp"

const std::string input = "../data/raw_html/raw.txt";
int main(){

    ns_searcher::Searcher *search = new ns_searcher::Searcher();
	std::cout<<"have 1"<<std::endl;
        search->InitSearcher(input);
	std::cout<<"have 2"<<std::endl;
        std::string query;
        std::string json_string;
	
    while(true){
        std::cout<<"search:"<<std::endl;
        std::cin>>query;
        search->Search(query,&json_string);

        std::cout<<json_string<<std::endl;

    }

    return 0;
}
